# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Jan 7, 2013
@author: Team Death Star
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;
from unique import UNIQUE;

class BuildingDeptApplication(RoleApplication):
    """ The Reception User Interface """

    def __init__(self):
        super(BuildingDeptApplication, self).__init__("construction"+UNIQUE, "BuildingDept");
        self.register_transition_step("ReviewBlueprintByGovt", self.create_blueprint_form_creator,name_fields=["sequence"]);

    def create_blueprint_form_creator(self, stepname, form):
        form.add_html_label('<B>Building Plan Approval:</B>')
        form.add_field(Type.CHOICE, "PlansApproved", labeltext="Plans Approved? ", choices=['Yes', 'No'], initial='Yes');
        form.add_field(Type.LONGSTRING, "Planchecker Comments", labeltext="Comments ")
        form.add_field(Type.CURRENCY, "Planchecking Fee", labeltext="Fee ")
   
    
if __name__ == '__main__':
    app = BuildingDeptApplication();
    app.MainLoop();